package com.itheima.tanhua.web;

import com.itheima.tanhua.pojo.db.UserInfo;
import com.itheima.tanhua.service.HuanXinService;
import com.itheima.tanhua.vo.HuanxinVo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 芝士雪豹
 * @create 2022/9/28/16:46
 */
@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    @Autowired
    private HuanXinService huanXinService;

    //查询环信用户和密码
    @GetMapping("user")
    public ResponseEntity findHxUser() {
        HuanXinUserVo huanXinUserVo = huanXinService.findHxUser();
        return ResponseEntity.ok(huanXinUserVo);
    }
}
